package com.mapbar.pay.action;

import com.mapbar.pay.entity.User;
import org.apache.log4j.Logger;

/**
 * 首页
 * 创建时间 2010-03-03 17:11:56
 * @author fengbj
 * @date
 *
 */
public class IndexAction extends BaseAction{

    private Logger logger = Logger.getLogger(this.getClass());//日志对象

    private User user;  //当前访问的用户，为空表示为未登录
    
    @Override
    public String execute() throws Exception {
        //.info("进入"+System.currentTimeMillis());
        if(user != null){
            logger.info("user : " + user.toString());
        }
        return SUCCESS;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
    


    


}